
<h1><span class="yiyi-st" id="yiyi-12">numpy.matrix.T</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.T.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.matrix.T.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="attribute">
<dt id="numpy.matrix.T"><span class="yiyi-st" id="yiyi-13"> <code class="descclassname">matrix.</code><code class="descname">T</code></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-14">返回矩阵的转置。</span></p>
<p><span class="yiyi-st" id="yiyi-15"><em>不</em>共轭！</span><span class="yiyi-st" id="yiyi-16">对于复共轭转置，使用<code class="docutils literal"><span class="pre">.H</span></code>。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-17">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-18"><strong>无</strong></span></p>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-19">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-20"><strong>ret</strong>：matrix对象</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-21">矩阵的（非共轭）转置。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-22">也可以看看</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-23"><a class="reference internal" href="numpy.transpose.html#numpy.transpose" title="numpy.transpose"><code class="xref py py-obj docutils literal"><span class="pre">transpose</span></code></a>，<a class="reference internal" href="numpy.matrix.getH.html#numpy.matrix.getH" title="numpy.matrix.getH"><code class="xref py py-obj docutils literal"><span class="pre">getH</span></code></a></span></p>
</div>
<p class="rubric"><span class="yiyi-st" id="yiyi-24">例子</span></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">m</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">matrix</span><span class="p">(</span><span class="s1">&apos;[1, 2; 3, 4]&apos;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">m</span>
<span class="go">matrix([[1, 2],</span>
<span class="go">        [3, 4]])</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">m</span><span class="o">.</span><span class="n">getT</span><span class="p">()</span>
<span class="go">matrix([[1, 3],</span>
<span class="go">        [2, 4]])</span>
</pre></div>
</div>
</dd></dl>
